#ifndef PAINTSETTINGS_H
#define PAINTSETTINGS_H
#include <QMap>
#include <QPixmap>
#include <QVector>
#include <cmath>

class PaintSettings
{
public:
    PaintSettings();

    void scroll(int dx, int dy);
    void adjust();
    double spanX() const
    {
        return maxX - minX;
    }
    double spanY() const
    {
        return maxY - minY;
    }

    double minX;
    double maxX;
    int numXTicks;

    double minY;
    double maxY;
    int numYTicks;

private:
    static void adjustAxis(double &min, double &max, int &numTicks);

};

#endif // PAINTSETTINGS_H
